import http from '../request.js'

// 科室列表
let getDepartList = (url) => {
    return http.req(
        'get',
        url = 'statis/chart/getDepartList',
        null,
        null
    )
}
// 手术间列表
let getOperationRoomList = (url) => {
    return http.req(
        'get',
        url = 'statis/chart/getOperationRoomList',
        null,
        null
    )
}

// 男女手术台数汇总-按总量
let getSexTimeChart = (url, params) => {
    return http.req(
        'get',
        url = 'statis/chart/getSexTimeChart',
        params,
        null
    )
}

// 男女手术台数汇总-按比例
let getSexRatioChart = (url, params) => {
    return http.req(
        'get',
        url = 'statis/chart/getSexRatioChart',
        params,
        null
    )
}

// 科室手术台数汇总-按总量
let getDepartTimeChart = (url, params) => {
    return http.req(
        'get',
        url = 'statis/chart/getDepartTimeChart',
        params,
        null
    )
}

// 科室手术台数汇总-按比例
let getDepartRatioChart = (url, params) => {
    return http.req(
        'get',
        url = 'statis/chart/getDepartRatioChart',
        params,
        null
    )
}

// 手术间手术台数汇总-按比例
let getOperationRoomRatioChart = (url, params) => {
    return http.req(
        'get',
        url = 'statis/chart/getOperationRoomRatioChart',
        params,
        null
    )
}

// 手术间手术台数汇总-按时间
let getOperationTimeChart = (url, params) => {
    return http.req(
        'get',
        url = 'statis/chart/getOperationTimeChart',
        params,
        null
    )
}

// 导出
let OperationExport = (url, data, responseType) => {
    return http.req1(
        'post',
        url = 'statis/chart/export',
        null,
        data,
        'blob'
    )
}

export default {
    getDepartList,
    getOperationRoomList,
    getSexTimeChart,
    getSexRatioChart,
    getDepartTimeChart,
    getDepartRatioChart,
    getOperationRoomRatioChart,
    getOperationTimeChart,
    OperationExport
}